package org.frank.blockchain.command;

import org.frank.blockchain.domain.NetAddress;
import org.frank.blockchain.util.ClientMap;

import java.util.ArrayList;
import java.util.List;

public class ManagerServerCommand {

    public List<NetAddress> getNodeList() {
        List<NetAddress> list = new ArrayList<NetAddress>();
        for (String key: ClientMap.getInstance().keySet()) {
            list.add(ClientMap.getInstance().get(key));
        }
        return list;
    }
}
